package com.serkol.bean;



import lombok.ToString;


@ToString
public class WsResult {

    private int status=501;
    private int type;

    private String msg;

    private boolean success;

    private Object data;


    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
    /*    if (msg == null) {
            msg = Constant.getInfo(this.status);
        }*/
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isSuccess() {
   /*     if (Constant.API_SUCSESS == status) {
            success = true;
        }*/
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}

